package com.github.niefy.modules.third.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.niefy.modules.third.dao.ThirdTemplateMsgTaskLogMapper;
import com.github.niefy.modules.third.entity.ThirdTemplateMsgTaskLog;
import com.github.niefy.modules.third.service.ThirdTemplateMsgTaskLogService;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.mp.api.WxMpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liuxy
 * @date 2023-4-4
 */
@Slf4j
@Service
public class ThirdTemplateMsgTaskLogServiceImpl extends ServiceImpl<ThirdTemplateMsgTaskLogMapper, ThirdTemplateMsgTaskLog> implements ThirdTemplateMsgTaskLogService {

	@Autowired
	private WxMpService wxMpService;

    @Override
    public Long getMaxSeq(){
        var maxSeq = baseMapper.getMaxSeq();
        if (BeanUtil.isEmpty(maxSeq)){
            return 0L;
        }
        return maxSeq;
    }
}
